package com.glacier.excel.domain;

import com.glacier.excel.annotation.ExcelIgnore;
import com.glacier.excel.annotation.ExcelIgnoreFields;
import com.glacier.excel.annotation.ExcelProperty;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * date 2021-06-16 17:16
 *
 * @author glacier
 * @version 1.0
 */
@ExcelIgnoreFields(fields = {"id"})
public class User implements Serializable {
    private static final long serialVersionUID = -7067870438783484066L;
    private String id;
    @ExcelProperty(value = {"用户名单", "名称"}, index = 0)
    private String name;
    @ExcelProperty(value = {"用户名单", "编号"}, index = 1)
    private String no;
    @ExcelProperty(value = {"用户名单", "性别"}, index = 2)
    private String sex;
    @ExcelProperty(value = {"用户名单", "身份证号"}, index = 3)
    private String idCard;
    @ExcelProperty(value = {"用户名单", "出生日期"}, index = 4)
    private LocalDate birthday;
    @ExcelProperty(value = {"用户名单", "入职日期"}, index = 5)
    private LocalDate entryDate;
    @ExcelProperty(value = {"用户名单", "邮箱"}, index = 6, order = 2)
    private String email;
    @ExcelProperty(value = {"用户名单", "手机号"}, index = 6, order = 3)
    private String phone;
    @ExcelIgnore
    private String address;
    
    public static long getSerialVersionUID() {
        return serialVersionUID;
    }
    
    public String getId() {
        return id;
    }
    
    public void setId(String id) {
        this.id = id;
    }
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getNo() {
        return no;
    }
    
    public void setNo(String no) {
        this.no = no;
    }
    
    public String getSex() {
        return sex;
    }
    
    public void setSex(String sex) {
        this.sex = sex;
    }
    
    public String getIdCard() {
        return idCard;
    }
    
    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }
    
    public LocalDate getBirthday() {
        return birthday;
    }
    
    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }
    
    public LocalDate getEntryDate() {
        return entryDate;
    }
    
    public void setEntryDate(LocalDate entryDate) {
        this.entryDate = entryDate;
    }
    
    public String getEmail() {
        return email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }
    
    public String getPhone() {
        return phone;
    }
    
    public void setPhone(String phone) {
        this.phone = phone;
    }
    
    public String getAddress() {
        return address;
    }
    
    public void setAddress(String address) {
        this.address = address;
    }
    
    @Override
    public String toString() {
        return "User{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", no='" + no + '\'' +
                ", sex='" + sex + '\'' +
                ", idCard='" + idCard + '\'' +
                ", birthday=" + birthday +
                ", entryDate=" + entryDate +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                '}';
    }
    
    
}
